package com.weixin.app;

import io.appium.java_client.android.AndroidDriver;
import org.openqa.selenium.By;

import java.net.MalformedURLException;

public class MemberPage extends BasePage {

    public MemberPage(AndroidDriver driver) throws MalformedURLException {
        super(driver);
    }

    //获取成员信息：姓名，邮箱
    public Userfiles getMember() throws Exception {
        Userfiles userfiles = new Userfiles();
       userfiles.setName(find("id","jpy").getText());
       userfiles.setEmail(find("id","btd").getText());
        return userfiles;
    }

    //编辑成员页面，获取部门列表
    public  PartmentPage getPartments() throws Exception {

        return new PartmentPage(driver);
    }

}
